package com.yunji.cabinet.service.impl;

import com.yunji.cabinet.dao.IUpgradeFileLogDao;
import com.yunji.cabinet.domain.UpgradeFileLogDO;
import com.yunji.cabinet.params.CabinetVersionLogParam;
import com.yunji.cabinet.service.IUpgradeFileLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.cabinet.service.impl
 * @Title: CabinetVersionLogServiceImpl
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-07-02 11:53:51      V1.0        HuaAo       新建类
 */
@Service
public class UpgradeFileLogServiceImpl implements IUpgradeFileLogService {

    @Resource
    IUpgradeFileLogDao cabinetVersionLogDao;

    @Override
    public List<UpgradeFileLogDO> search(CabinetVersionLogParam param) {
        return cabinetVersionLogDao.search(param);
    }

    @Override
    public boolean create(UpgradeFileLogDO upgradeFileLog) {
        return cabinetVersionLogDao.save(upgradeFileLog);
    }

    @Override
    public UpgradeFileLogDO select(Long id) {
        return cabinetVersionLogDao.getById(id);
    }

    @Override
    public boolean update(UpgradeFileLogDO log) {
        return cabinetVersionLogDao.updateById(log);
    }
}